package cn.stylefeng.guns.modular.hx.storage.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.bi.entity.vo.DpkcQueryIby;
import cn.stylefeng.guns.modular.hx.storage.entity.HxStorageStock;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStoragePutDetailedParam;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageStockParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStoragePutDetailedResult;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageStockResult;
import cn.stylefeng.guns.sys.modular.system.entity.User;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 库存表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-08-15
 */
public interface HxStorageStockService extends IService<HxStorageStock> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-08-15
     */
    void add(HxStorageStockParam param);
    void addItem(HxStorageStockParam param,User user);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-08-15
     */
    void delete(HxStorageStockParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-08-15
     */
    void update(HxStorageStockParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-15
     */
    HxStorageStockResult findBySpec(HxStorageStockParam param, Long operateId);

    HxStorageStockResult findBySpec1(HxStorageStockParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-15
     */
    List<HxStorageStockResult> findListBySpec(HxStorageStockParam param);

    List<HxStorageStockResult> findListByStorageNumber(HxStorageStockParam param);

    List<HxStorageStockResult> findListByStorageNumber1(HxStorageStockParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-15
     */
    LayuiPageInfo findPageBySpec(HxStorageStockParam param, String condition);

    ResponseData getExceldata(MultipartFile file, HxStorageStockParam hxStorageStockParam, User user, ResponseData data) throws Exception;

    HxStorageStockParam details(HxStorageStockParam hxStorageStockParam);
    
	List<HxStorageStockResult> findsubListBySpec(HxStorageStockParam subHxStorageStockParam);
	
	HxStorageStockResult sumPositionStock(HxStorageStockParam sumHxStorageStockParam);
	
	HxStorageStockResult findaddOffShelf(HxStorageStockParam offShelfparam);
	
    List<HxStorageStockResult> list(HxStorageStockParam hxStorageStockParam);
    
	LayuiPageInfo findchoicePageBySpec(HxStorageStockParam hxStorageStockParam, String condition);

    LayuiPageInfo findchoicePageBySpec2(HxStorageStockParam hxStorageStockParam, String condition);

    List<HxStorageStockResult> findCccapacityData(HxStorageStockResult hxStorageStockResult);
    
	List<HxStorageStockParam> findlistAllBySpec(HxStorageStockParam hxStorageStockParam, String condition);

    List<HxStorageStockParam> findlistAllBySpecPd(HxStorageStockParam hxStorageStockParam, String condition);

	List<HxStorageStockParam> findlistAllBySpec2(HxStorageStockParam hxStorageStockParam, String condition);
    
	List<HxStorageStockParam> findlistAllBySpec3(HxStorageStockParam hxStorageStockParam, String condition);

    ResponseData findPageBySpec2(HxStorageStockParam hxStorageStockParam, String condition);

    List<HxStorageStockResult> findaddOffShelflist(HxStorageStockParam offShelfparam);

    List<HxStorageStockResult> getPositionKcnum(HxStorageStockParam param);

	void deleteBySpec(HxStorageStockParam stockParamdelete);

    LayuiPageInfo dpkcQuery(DpkcQueryIby dpkcQueryIby);


    List<HxStorageStockResult> dpkcQueryAll(DpkcQueryIby dpkcQueryIby);

}
